package org.cfx.auth.service.impl;

import org.cfx.auth.domain.AuthPermission;
import org.cfx.auth.domain.AuthRole;
import org.cfx.auth.domain.dto.RoleDto;
import org.cfx.auth.mapper.AuthPermissionMapper;
import org.cfx.auth.service.IAuthPermissionService;
import org.cfx.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cfx
 * @since 2023-09-11
 */
@Service
public class AuthPermissionServiceImpl extends BaseServiceImpl<AuthPermission> implements IAuthPermissionService {
    @Autowired
    private AuthPermissionMapper authPermissionMapper;


    @Override
    public List<AuthPermission> queryTree() {
        return authPermissionMapper.queryTree();
    }

    @Override
    public void deleteAll() {
        authPermissionMapper.deleteAll();
    }

    @Override
    public void addList(List<AuthPermission> childs) {
        authPermissionMapper.addList(childs);
    }

}
